package com.sproutcat.sample.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author tzg
 */
@Service
@RabbitListener(queues = "topic.man")
@Slf4j
public class TopicManReceiver {

    @RabbitHandler
    public void process(Map testMessage) {
        log.debug(" TopicManReceiver 消费者收到消息 : {}", testMessage.toString());
    }

}
